<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>once try</title>
</head>
<body>
<p>{{ views_name }}</p>
<p>{{ views_list }}</p>
<p>{{ views_list.0 }}</p>
<p>{{ views_dict }}</p>
<p>{{ views_dict.name }}</p>
<p>{{ name | default:"测试过滤选项123" }}</p>
<p>{{ name | length }}</p>
<p>{{ num | filesizeformat }}</p>
<p>{{ now | date:'Y-m-d' }}</p>
<p>{{ views_str | truncatechars:2 }}</p>
<p>{{ views_str | safe }}</p>
{% if views_num > 90 and views_num <= 100 %} 优秀
{% elif views_num > 60 and views_num <= 90 %} 合格
{% else %} 不及格
{% endif %}
<br>
{% for i in views_list %}
{{ i }}
{% endfor %}
<br>
{% for i in view_list reversed %}
{{ i }}
{% endfor %}
<br>
{% for i,j in views_dict.items %}
{{ i }}---{{ j }}
{% endfor %}
<br>
{% for i in list_var %}
{#    {{ forloop.counter }}<br>#}
{#    {{ forloop.counter0 }}<br>#}
{#    {{ forloop.revcounter }}<br>#}
{#    {{ forloop.revcounter0 }}<br>#}
{#    {{ forloop.first }}<br>#}
{#    {{ forloop.last }}<br>#}
{% endfor %}
<br><br>
{% for i in list_var %}
    {{ forloop.counter0 }}
{% empty %}
    空空如也~·、
{% endfor %}
</body>
</html>